package ooday03;

/**
 * @author ${pxl}
 */
public abstract class  Animals {
    String name;
    int age;
    String color;
    Animals(String name,int age,String color){
        this.name=name;
        this.age=age;
        this.color=color;
    }
    void message(){
        System.out.println("这是"+name+","+age+"岁了"+"是"+color+"色的小动物呢");
    }
    void drunk(){
        System.out.println(name+"会喝水");
    }
    /**
     * 抽象方法eat描述动物进食行为
     */
     abstract void eat();
}